package com.ruoyi.odorservice.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SampleDetailVo {

    @ApiModelProperty("样本id")
    private Integer sampleId;

    @ApiModelProperty("样本时间")
    private LocalDateTime sampleTime;

    @ApiModelProperty("样本下物质列表")
    private List<SampleMaterial> sampleMaterialList;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SampleMaterial {

        @ApiModelProperty("物质id")
        private Integer materialId;

        @ApiModelProperty("cas号")
        private String casNo;

        @ApiModelProperty("物质名称")
        private String materialName;

        @ApiModelProperty("物质类型")
        private String materialType;

        @ApiModelProperty("浓度")
        private Double concentration;

    }

}
